package com.tamtamy.jttamobile.data;

import java.util.Date;



public class User {
	protected String userID;
	protected String nickname;
	protected String firstName;
	protected String lastName;
	protected String gender;
	protected Date birthday;// class="sql-timestamp">2008-12-25 00:00:00.0</birthday>
	protected String mail;
	protected String blog;
	protected String interest;
	protected String avatarFilename;
    protected boolean online;

    public User() {
		super();
		this.userID = null;
		this.nickname = null;
		this.firstName = null;
		this.lastName = null;
		this.gender = null;
		this.birthday = null;
		this.mail = null;
		this.blog = null;
		this.interest = null;
		this.avatarFilename = null;
		this.online = false;
	}
	public User(String userID, String nickname, String firstName,
			String lastName, String gender, Date birthday, String mail,
			String blog, String interest, String avatarFilename, boolean online) {
		super();
		this.userID = userID;
		this.nickname = nickname;
		this.firstName = firstName;
		this.lastName = lastName;
		this.gender = gender;
		this.birthday = birthday;
		this.mail = mail;
		this.blog = blog;
		this.interest = interest;
		this.avatarFilename = avatarFilename;
		this.online = online;
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getBlog() {
		return blog;
	}

	public void setBlog(String blog) {
		this.blog = blog;
	}

	public String getInterest() {
		return interest;
	}

	public void setInterest(String interest) {
		this.interest = interest;
	}

	public String getAvatarFilename() {
		return avatarFilename;
	}

	public void setAvatarFilename(String avatarFilename) {
		this.avatarFilename = avatarFilename.replace("/tamtamy/", "/").replace("/original","");
	}

	public boolean isOnline() {
		return online;
	}

	public void setOnline(boolean online) {
		this.online = online;
	}
	
	@Override
	public String toString() {
		return "User [userID=" + userID + ", nickname=" + nickname
				+ ", firstName=" + firstName + ", lastName=" + lastName
				+ ", gender=" + gender + ", birthday=" + birthday + ", mail="
				+ mail + ", blog=" + blog + ", interest=" + interest
				+ ", avatarFilename=" + avatarFilename + ", online=" + online
				+ "]";
	}

}
